package com.jjh.utils;import com.jjh.mapper.PictureMapper;import com.jjh.service.PictureService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.scheduling.annotation.Scheduled;import org.springframework.stereotype.Component;/** * @Author Sunny * @Date 2018/5/3 20:40 *//** * 定时任务删除数据库中的点赞人的信息，每天的23 :59 :59 */@Componentpublic class MyScheduler {@Autowired    PictureMapper pictureMapper;    @Scheduled(cron = "59 59 23 ? * *")    public void  deleteVoter(){        pictureMapper.updateVote();    }}